package com.aidong.job;

import javax.annotation.Resource;
import org.quartz.JobExecutionContext;
import org.springframework.scheduling.quartz.QuartzJobBean;
import org.springframework.stereotype.Component;

import com.aidong.service.AutoCheckStockService;

@Component
public class AutoCheckStockJob extends QuartzJobBean {

	@Resource
	AutoCheckStockService autoCheckStockService;

	@Override
	public void executeInternal(JobExecutionContext arg0) {
		try {
			autoCheckStockService.doJob();
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}
}
